<?php

namespace app\controllers;

use app\models\Relation;
use app\models\Person;

class AddController extends \wicked\core\Controller
{

    public function child($idParents)
    {
        return compact('idParents');
    }

    public function relation($idPerson)
    {
        return ['person' => Person::findOne($idPerson)];
    }

    public function parents($idPerson)
    {
        return ['person' => Person::findOne($idPerson)];
    }

}
